<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<script src="https://code.jquery.com/jquery-3.4.1.js"></script>

</head>
<body>
   <a href="meiyou://?img=1">点我点我</a>
   <form id="uploadForm" name="uploadForm" enctype="multipart/form-data" method="POST">
        <!--    性别：<input type="text" id="ySex" name="ySex"><br/>
           用户名：<input type="text" id="yUCount" name="yUCount"><br/>
           地点：<input type="text" id="yAddress" name="yAddress"> <br/>    
           时间：<input type="text" id="yDate" name="yDate"> <br/>
           内容：<input type="text" id="yContext" name="yContext"> <br/>  
           人数：<input type="text" id="yNum" name="yNum"><br/>
           悬赏金：<input type="text" id="yMeijin" name="yMeijin"><br/>
           <input type="radio" id="yPingtai2" name="yPingtai" value="线下支付">线下支付<br/>
           图片：<input type="file" name="mfile" id="img" multiple	/>
 
		<div id="c"></div>
		<button class="btn" type="button" id="doSave">提交</button> -->
	</form>
	<script>
	/* $("#doSave")
	.click(
		function() {
			var formData = new FormData();
			var files = $("#img").get(0).files;
			if(files.length>0){
				  for(var i=0;i<files.length;i++){
					  formData.append("mfile",files[i]);
				  }
				  formData.append("yAddress",$("#yAddress").val());
				  formData.append("yUCount",$("#yUCount").val());
				  formData.append("yContext",$("#yContext").val());
				  formData.append("yNum",$("#yNum").val());
				  formData.append("yMeijin",$("#yMeijin").val());
				  formData.append("ySex",$("#ySex").val());
				  formData.append("yPingtai",$("#yPingtai1").val());
				  formData.append("yPingtai",$("#yPingtai2").val());
				  formData.append("yDate",$("#yDate").val());
			}
			 
			$.ajax(
				{
	
					url : '/meiyou/fabuYuehui',
					type : "POST",
					data:formData,
					processData:false,
					contentType:false,
					success : function(data) {
						if (data.msg == '上传失败') {
							alert(data.msg);
						} else if (data.msg == '请选择文件') {
							alert("上传文件不能为空");
						} else if (data.msg == '只能上传图片啊亲!') {
							alert(data.msg);
						} else if (data.msg == '图片过大') {
							alert(data.msg);
						} else {
							$("#c").empty();
							$.each(data, function(index, item) {
								$("#c").append('<img id=img' + index.substr(index.length - 1, index.length) +
									' src="'  
									+ item + '" style="width: 300px;height: 300px;   ">')
									.append("<a id='del'"
										+ index + ""
										+ " href='javascript:delpic("
										+ index.substr(index.length - 1, index.length)
										+ ");' class='upload-img-del"
										+ index.substr(index.length - 1, index.length) + "'>删除</a>");


						});
					}
				}
			});
		});

			function delpic(i) {
		$("#img" + i).attr("style", "display:none").attr("src", "");
		$(".upload-img-del" + i).text("");
		$(".upload-img-del" + i).html("");
	} */
   $.ajax({
	   url:"alipayOrder",
	   method:"get",
	   data:{
		   "total_amount":'23',
		   "subject":"麻辣"
	   },
	   success:function(data){
		   alert("成功");
		   $("body").append(data)
	   }
   })
</script>
</body>
</html>